﻿<Application x:Class="DACU.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:sys="clr-namespace:System;assembly=mscorlib"
			 xmlns:Converters="clr-namespace:DACU.Tools.Converters"
			 xmlns:Controls="clr-namespace:DACU.UserControls"
			 xmlns:PlayerControls="clr-namespace:DACU.UserControls.Player"
			 xmlns:Utils="clr-namespace:DACU.Tools" StartupUri="MainWindow.xaml">
    <Application.Resources>
		<sys:String x:Key="NoData">N/A</sys:String>

		<!--Converters-->
		<Converters:UriToBitmapImageConverter x:Key="UriToBitmap"/>
		<Converters:BoolToColor x:Key="BoolColor"/>
		<Converters:EmptyToN_AConverter x:Key="Empty_NA"/>
		<Converters:ReverseBooleanConverter x:Key="ReverseBool"/>
		<Converters:BoolToShuffleConverter x:Key="BoolToShuffle"/>
		<Converters:BoolToOnOffConverter x:Key="BoolToOnOff"/>
		<Converters:DoubleToTimeSpanConverter x:Key="DoubleToTimeSpan"/>
		<Converters:BoolToMuteConverter x:Key="BoolToMute"/>
		<Converters:TrackToVisibilityConverter x:Key="TrackToVisibility"/>
		<!--<Converters:BoolToPlayPauseConverter x:Key="BoolToPlayPause"/>-->
		<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
		<Converters:ListItemToIndexConverter x:Key="ItemToIndex"/>
		<Converters:DataItemToIndexConverter x:Key="DataItemToIndex"/>


		<Utils:LvPlayListStyleSelector x:Key="PlayListStyleSelector"/>

		<!--Colors-->
		<SolidColorBrush x:Key="DefaultColor" Color="White"/>
		<SolidColorBrush x:Key="AlternativeColor" Color="AliceBlue"/>
		<LinearGradientBrush x:Key="CurrentPlaysColor" EndPoint="1,0.5" StartPoint="0,0.5">
			<GradientStop Color="#00000000" Offset="0" />
			<GradientStop Color="#FFBA5656" Offset="1" />
			<GradientStop Color="#864A8365" Offset="0.5" />
		</LinearGradientBrush>

		<!--Styles-->
		<Style x:Key="NormalRow" TargetType="{x:Type ListViewItem}">
			<Setter Property="Background" Value="{StaticResource DefaultColor}"></Setter>
		</Style>

		<Style x:Key="CurrentPlaysRow" TargetType="{x:Type ListViewItem}">
			<Setter Property="Background" Value="{StaticResource CurrentPlaysColor}"/>
		</Style>

		<Style x:Key="AlternativeRow" TargetType="{x:Type ListViewItem}">
			<Setter Property="Background" Value="{StaticResource AlternativeColor}"></Setter>
		</Style>

	</Application.Resources>
</Application>
